Skip to content

feat(agent): add subagents feature flag for task/sage tool switching#2922

Open
amitksingh1490 wants to merge 14 commits intomainfrom
chore/feature-flag-subagents
Open

feat(agent): add subagents feature flag for task/sage tool switching#2922
amitksingh1490 wants to merge 14 commits intomainfrom
chore/feature-flag-subagents

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 10, 2026
Comment thread crates/forge_repo/src/agents/forge.md Outdated
- task
{{else}}
- sage
{{/if}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use templating in frontmatter.

Comment thread crates/forge_repo/src/agent.rs Outdated
async fn init_agent_dir(
&self,
dir: &std::path::Path,
config: &ForgeConfig,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop wiring of ForgeConfig thru all the functions. Use self.infra.get_config() at the call site.

Comment thread crates/forge_config/src/config.rs Outdated
/// sub-agents, and the `sage` research-only agent tool is removed.
/// When false the `task` tool is disabled and `sage` is available instead.
#[serde(default)]
pub enable_subagents: bool,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub enable_subagents: bool,
pub subagents: bool,

@amitksingh1490 amitksingh1490 changed the title feat(agent): add enable_subagents feature flag for task/sage tool switching feat(agent): add subagents feature flag for task/sage tool switching Apr 14, 2026
Comment thread crates/forge_config/.forge.toml Outdated
top_k = 30
top_p = 0.8
verify_todos = true
enable_subagents = true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enable_subagents = true
subagents = true

Comment thread crates/forge_repo/src/agents/forge.md Outdated
- todo_write
- todo_read
- task
- sage
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants